package com.vehicle.app.controller.user;

import com.vehicle.app.api.user.IUserService;
import com.vehicle.app.entity.user.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author shouhan
 * @version 1.0
 * @date 2018/12/28
 * @desc 类描述
 * @see
 * @since 1.0
 */
@RestController
@RequestMapping("user")
public class TestController {

    @Autowired
    private IUserService userService;

    @RequestMapping("list")
    public List<User> test(){
        return userService.findList();
    }



}
